<script language="JavaScript" type="text/javascript">
  <!--
  var counter=0
  add_one()
  
  function add_one()
  {
    counter=counter+1
    if(confirm("counter is now "+counter+" .Add another one?"))
    {
      add_one()
    }
  }

  alert("Counter ended up at "+counter)
  //-->
</script>
